import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import BlogHomeView from "@/views/blog/BlogHomeView";
import ExamHomeView from "@/views/exam/ExamHomeView";
import FilmHomeView from "@/views/film/FilmHomeView";
import SchoolHomeView from "@/views/school/SchoolHomeView";
import BlogContentView from "@/views/blog/BlogContentView";
import SchoolVideoPlayView from "@/views/school/SchoolVideoPlayView";

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        name: '主页',
        component: HomeView
    }, {
        path: '/blog',
        name: '博客主页',
        component: BlogHomeView
    }, {
        path: '/exam',
        name: '考证主页',
        component: ExamHomeView
    }, {
        path: '/film',
        name: '影音主页',
        component: FilmHomeView
    }, {
        path: '/school',
        name: '学堂主页',
        component: SchoolHomeView
    }, {
        path: '/blog-content/:id',
        props: true,
        name: '博客详情页',
        component: BlogContentView
    }, {
        path: '/school-video-play/:id',
        props: true,
        name: '学堂视频播放页',
        component: SchoolVideoPlayView
    }
]

const router = new VueRouter({
    routes
})

export default router
